<div id="causas">	
<?php 
	echo "<table id='tablaCausas'>";
	echo "<thead>";
	echo "<tr><th>N&ordm; Orden</th><th>N&ordm; Expediente</th><th>Apellidos Reclamantes-Apellidos Reclamados</th><th>Resoluciones Dictadas</th></tr>";
	echo "</thead>";
	echo "<tbody>";
	$i=0;
	foreach ($results -> result() as $row)
	{
		$i=$i+1;
		echo "<tr><td>".$i."</td><td>".$row->rol_causa."</td><td>".$row->materia."</td><td>".$row->resoluciones."</td></tr>";
	}
	echo "</tbody>";	
	echo "</table>";
	echo "<fieldset><input type='button' value='Borrar Estado' onclick='estadoFunction(8,".$idEstado.")'/></fieldset>";
	?>
	</div>
	<div class="clear"></div>